import React, {Component,} from 'react';

export default class BaseComponent extends Component {

  dispatch = (type, payload) => {
    this.props.dispatch({type, payload});
  }

  dispatchAsyn = (fun)=> {
    this.props.dispatch(fun);
  }
}